//
//  UIViewController+Helper.h
//  Oscar
//
//  Created by cqck on 2018/4/26.
//  Copyright © 2018年 cqck. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol BackButtonHandlerProtocol <NSObject>

@optional
// 重写下面的方法以拦截导航栏返回按钮点击事件，返回 YES 则 pop，NO 则不 pop
-(BOOL)navigationShouldPopOnBackButton;

@end

@interface UIViewController (Helper) <BackButtonHandlerProtocol>

- (void)createNavRightBtnWithImage:(NSString *)imageNamed selecter:(SEL)selecter size:(CGSize)imageSize;

- (void)createNavRightBtnWithTitle:(NSString *)title selecter:(SEL)selecter titleColor:(UIColor *)color font:(UIFont *)font;

- (UIButton *)createLeftFunctionBtnWithImage:(NSString *)imageName selecter:(SEL)selecter size:(CGSize)imageSize;

- (UIBarButtonItem *)getNaviBackBtn;

//- (BOOL)isPush;

- (void)disablePopGesture;

- (void)enabelPopGesture;

@end
